<?php
require_once('Data.php');

if(IsLoggedIn())
{
        ?> <h1>Welcome <?=GetUserName()?></h1> <a href=logout.php> Logout </a> <?
        
}
?>
        <div class="tabbar">
        <div class="tab <?php echo $section=='home' ? 'currenttab' : '' ?>">
                <a href="index.php" >
                        Home
                </a>
        </div>
        <div class="tab <?php echo $section=='admin' ? 'currenttab' : '' ?>">
            <a href="admin.php" >
                                Admin
            </a>
        </div>
        <div class="tab <?php echo $section=='users' ? 'currenttab' : '' ?>">
            <a href="users.php" > 
                                User
            </a>
        </div>
        </div>
        
        
        <div class="tab <?php echo $section=='cart' ? 'currenttab' : '' ?>">
           <?
           require_once('Data.php');
           if(IsLoggedIn() && GetUserID()==1000)
           {
                 ?><a href="cart.php" ><?
                 
           }
           else { ?>
           <a href="usercart.php">
           <?}?>
                                Cart
            </a>
        </div>
        
       <div class="tab <?php echo $section=='about' ? 'currenttab' : '' ?>">
            <a href="about.php" > 
                                About
            </a>
        </div>
        <br clear="all" />
    </div>
